package com.inspur.dgov.policy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 政策采集清单信息
 *
 * @author chiyupei
 * @version 1.0
 * @since 1.0
 */
@Data
@TableName("policy_collect_info")
@ApiModel(value="PolicyCollectInfo对象", description="政策采集清单信息")
public class PolicyCollectInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "所属区划简码")
    @TableField("REGION_CODE")
    private String regionCode;

    @ApiModelProperty(value = "所属区划名称")
    @TableField("REGION_NAME")
    private String regionName;

    @ApiModelProperty(value = "所属部门编码")
    @TableField("ORG_CODE")
    private String orgCode;

    @ApiModelProperty(value = "所属部门名称")
    @TableField("ORG_NAME")
    private String orgName;

    @ApiModelProperty(value = "采集分类ID(字典)")
    @TableField("COLLECT_TYPE")
    private Long collectType;

    @ApiModelProperty(value = "采集分类名称(字典)")
    @TableField("COLLECT_TYPE_NAME")
    private String collectTypeName;

    @ApiModelProperty(value = "网站名称")
    @TableField("WEBSITE_NAME")
    private String websiteName;

    @ApiModelProperty(value = "栏目名称")
    @TableField("CHANNEL_NAME")
    private String channelName;

    @ApiModelProperty(value = "采集源URL")
    @TableField("COLLECT_URL")
    private String collectUrl;

    @ApiModelProperty(value = "采集结果CSV文件名")
    @TableField("COLLECT_CSV_FILE")
    private String collectCsvFile;

    @ApiModelProperty(value = "是否启用自动采集(0 否  1是)")
    @TableField("AUTO_COLLECT")
    private String autoCollect;

    @ApiModelProperty(value = "状态(1有效 0 无效)")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "采集说明")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "创建者ID")
    @TableField("CREATOR")
    private Long creator;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者ID")
    @TableField("UPDATOR")
    private Long updator;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "扩展字段1")
    @TableField("EXTEND_FIELD_1")
    private String extendField1;

    @ApiModelProperty(value = "扩展字段2")
    @TableField("EXTEND_FIELD_2")
    private String extendField2;

    @ApiModelProperty(value = "扩展字段3")
    @TableField("EXTEND_FIELD_3")
    private String extendField3;

    @ApiModelProperty(value = "扩展字段4")
    @TableField("EXTEND_FIELD_4")
    private String extendField4;

    @ApiModelProperty(value = "扩展字段5")
    @TableField("EXTEND_FIELD_5")
    private String extendField5;

    @ApiModelProperty(value = "租户ID")
    @TableField("TENANT_ID")
    private Long tenantId;

}
